package com.bugreport.integration.web;

import java.util.Properties;

import org.junit.BeforeClass;

public abstract class JettyServerTestCase {

	private static Properties jettyProperties;

	@BeforeClass
	public static void initJettyProperties() throws Exception {

		jettyProperties = new Properties();
		jettyProperties.load(JettyServerTestCase.class.getResourceAsStream("/jetty.properties"));
	}

	protected String getJettyBaseUrl() {
		return "http://localhost:" + jettyProperties.getProperty("jetty.port")
				+ jettyProperties.getProperty("jetty.contextpath");
	}
}
